<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

$TCA['tx_mtprize_history'] = array (
	'ctrl' => $TCA['tx_mtprize_history']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,starttime,endtime,point,fe_user,description,add_point,what_columnt,what_uid,get_user'
	),
	'feInterface' => $TCA['tx_mtprize_history']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'starttime' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
			'config'  => array (
				'type'     => 'input',
				'size'     => '8',
				'max'      => '20',
				'eval'     => 'date',
				'default'  => '0',
				'checkbox' => '0'
			)
		),
		'endtime' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
			'config'  => array (
				'type'     => 'input',
				'size'     => '8',
				'max'      => '20',
				'eval'     => 'date',
				'checkbox' => '0',
				'default'  => '0',
				'range'    => array (
					'upper' => mktime(3, 14, 7, 1, 19, 2038),
					'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))
				)
			)
		),
		'point' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_prize/locallang_db.xml:tx_mtprize_history.point',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',	
				'eval' => 'required,int',
			)
		),
		'fe_user' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_prize/locallang_db.xml:tx_mtprize_history.fe_user',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'fe_users',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'description' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_prize/locallang_db.xml:tx_mtprize_history.description',		
			'config' => array (
				'type' => 'text',
				'cols' => '30',	
				'rows' => '5',
			)
		),
		'add_point' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_prize/locallang_db.xml:tx_mtprize_history.add_point',		
			'config' => array (
				'type' => 'check',
			)
		),
		'what_columnt' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_prize/locallang_db.xml:tx_mtprize_history.what_columnt',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',	
				'eval' => 'required',
			)
		),
		'what_uid' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_prize/locallang_db.xml:tx_mtprize_history.what_uid',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',	
				'eval' => 'required,int',
			)
		),
		'get_user' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_prize/locallang_db.xml:tx_mtprize_history.get_user',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'fe_users',	
				'foreign_table_where' => 'ORDER BY fe_users.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, point, fe_user, description, add_point, what_columnt, what_uid, get_user')
	),
	'palettes' => array (
		'1' => array('showitem' => 'starttime, endtime')
	)
);
?>